<template>
  <div class="no-data--wrapper">
    <p>
      {{ text }}
    </p>
  </div>
</template>

<script>
export default {
  name: 'NoData',
  props: {
    text: {
      type: String,
      default: '暂无数据'
    }
  },
  data() {
    return {}
  }
}
</script>

<style lang="less" scoped>
.no-data--wrapper {
  background: #f7f8f9;
  color: #acadb5;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  p {
    margin: 0;
    text-align: center;
  }
}
</style>
